package com.csu.service;

import com.csu.entiry.Book;

import java.util.List;

public interface BookService {

    List<Book> getBookList(int current, int size, String key);

    int getTotal(int current, int size, String key);

    void addBook(Book book);

    void removeBook(int id);

    void updateBook(Book book);

    Book getById(int id);

    int getIdByName(String bookname);

    List<String> searchName(String key);
    List<Book> getAllBookList(String key);
    List<Book> getAllBookListByDesc(String key);
}
